package com.mlc.data.dao;

import com.mlc.data.entity.Details;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author FireWang
 * @date 2022/03/14 02:46:46
 */
public interface DetailsDao extends JpaRepository<Details, Integer>, JpaSpecificationExecutor {

    @Query("select songId from Details where playId = ?1")
    List<Integer> findSongIdByPlayId(Integer playId);
}
